package com.example.pwj.ffstudy.ui.gank.model;

import com.example.pwj.ffstudy.bean.gank.GankBean;
import com.example.pwj.ffstudy.http.Api;
import com.example.pwj.ffstudy.ui.gank.contract.GankContact;

import javax.inject.Inject;

import io.reactivex.Observable;

/**
 * author：liluo
 * e-mail：lastcrazysun@163.com
 * company：cusc
 * date：2017/8/28 15:56
 * description：
 */

public class GankModel implements GankContact.Model {

    @Inject
    public GankModel() {
    }

    @Override
    public Observable<GankBean> getGankDatas(int count, int page) {
        return Api.getDefault(Api.TYPE_GANK).getData(count, page);
    }
}
